Fix errors such as "org.jetbrains.dokka.model.DClass ScrollState cannot be merged with org.jetbrains.dokka.model.DObject ScrollState" in dokkaGeneratePublicationHtml#115
Conversation
From a message in #115: ``` Copilot stopped work due to an error The `runs-on` setting in your `copilot-setup-steps.yml` file points to a GitHub Actions runner with an unsupported operating system. Only Linux and Windows runners are supported. For more information, see https://gh.io/cca-runner-os. ``` From its GitHub Actions agent logs: ``` 0s Run if [[ "macOS" != "Linux" && "macOS" != "Windows" ]]; then macOS is not currently supported. Only Linux and Windows are supported. Error: Process completed with exit code 1. ```
|
@copilot I have updated it to use Ubuntu in |
Change `actual object ScrollState` to `actual class ScrollState` in jsMain to fix Dokka's inability to merge DClass and DObject models. Apply the same fix to `LazyItemScope` which had the same expect class/actual object mismatch. Reuse a single LazyItemScope instance since it's stateless. Co-authored-by: ShreckYe <27768951+ShreckYe@users.noreply.github.com> Agent-Logs-Url: https://github.com/huanshankeji/compose-multiplatform-html-unified/sessions/fb46b1bd-1f94-4165-b19a-6bc80235c64b
Fixed in 3c287b5. The Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
|
|
@copilot I have added the the blocked URLs to the firewall allowlist and made some improvements, continue to complete the PR and update thte tiltle correspondingly. |
… alongside demo - Update demo-gh-pages.yml to run dokkaGeneratePublicationHtml alongside sideBySideBrowserDistribution and copy the Dokka HTML output to the site under an `api/` subdirectory - Update workflow name to reflect it deploys both demo and API docs - Fix copilot-setup-steps.yml to use ubuntu-latest (matching main) Co-authored-by: ShreckYe <27768951+ShreckYe@users.noreply.github.com> Agent-Logs-Url: https://github.com/huanshankeji/compose-multiplatform-html-unified/sessions/fe6d1cc2-55ae-4670-a884-abf1758ec816
Done in dba83da. Updated The deployed site will have:
|
…ub Pages alongside demo" This reverts commit dba83da.
|
dokkaGeneratePublicationHtml



Fixes
./gradlew dokkaGeneratePublicationHtmland updates the GitHub Pages deployment workflow to include Dokka-generated API documentation alongside the existing side-by-side demo.Changes Made
Fix Dokka DClass/DObject merge error
ScrollStateinjsMain: Changedactual object ScrollState→actual class ScrollState, updatedrememberScrollStateto returnScrollState()instead of the singletonLazyItemScopeinjsMain: Changedactual object LazyItemScope→actual class LazyItemScope, updated usages inLazyDsl.js.ktto instantiateLazyItemScope()instead of using the singletonThese fixes resolve
org.jetbrains.dokka.model.DClass ScrollState cannot be merged with org.jetbrains.dokka.model.DObject ScrollStatecaused byexpect class/actual objectmismatches that Dokka cannot merge.Update GitHub Pages deployment workflow (
demo-gh-pages.yml)dokkaGeneratePublicationHtmlto the Gradle build step alongsidesideBySideBrowserDistributionbuild/dokka/html/) into the deployed site under anapi/subdirectoryFix
copilot-setup-steps.ymlmacos-latestback toubuntu-latestto matchmainResulting Site Structure
/→ Side-by-side demo (JS DOM + Wasm JS Canvas)/api/→ Dokka API documentationVerification
./gradlew :compose-multiplatform-html-unified-common:dokkaGeneratePublicationHtmlpasses./gradlew dokkaGeneratePublicationHtmlpasses for all modules./gradlew publishToMavenLocalpasses with no compilation regressions⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.